< previous page page_582 next page >

Page 582
cannot use the OLE container control as part of an ActiveX document. Add the controls listed in Table 21.2 to the UserDocument as shown in Figure 21.3.
12181-0582a.gif
Figure 21.3.
Creating a Database Viewer as an ActiveX document.
As you can see, you are creating a simple database viewer display using the supplied Biblio database. When you have completed adding the controls to the document, set the following properties for each control as shown in Table 21.2.
TABLE 21.2. ADDING THE CONTROLS TO THE ACTIVEX DOCUMENT.
ControlPropertyValue
Data ControlNamedocDataCtl
DatabaseNameC:\programfiles\devstudio\vb\biblio.mdb
RecordsourceAuthors
Command ButtonNamecmdClose
CaptionClose
MSFlexGridNamedocFlexGrid
DataSourcedocDataCtl

For this example, the only code you need to add is the End statement in the cmdClose click event.

 
< previous page page_582 next page >

If you like this book, buy it!